home *** CD-ROM | disk | FTP | other *** search
- --= SID = SIMTEL20 Ada Software Repository Item Description File = SID =--
- -- UNIT NAME : Permutations_Class
- -- VERSION : 1.0
- -- REVIEW CODE :
- -- DDN ADDRESS : bryan@su-sierra
- -- AUTHOR : Doug Bryan
- -- : Computer Systems Lab
- -- : Stanford University
- -- : Stanford CA, 94305
- -- COPYRIGHT :
- -- DATE CREATED : 15 April 1985
- -- DATE RELEASED : 15 April 1985
- -- DATE LAST UPDATED : 15 April 1985
- -- LOCATION : C2MUG
- -- LOCATION : ASR
- -- ENVIRONMENT : DG MV/10000 ADE 2.2
- --= CLASSIFICATION ===============================================--
- -- CATEGORY LEVEL 1 : COMPONENTS
- -- CATEGORY LEVEL 2 : Permutations Class
- -- CATEGORY LEVEL 3 :
- -- CATEGORY LEVEL 4 :
- -- KEYWORD :
- -- INDEX : Permutations
- -- INDEX : Recursion
- -- INDEX : Nested Generics
- -- INDEX : Generics, Nested
- -- INDEX : Iterators
- -- TAXONOMY :
- -- DEPENDENCIES :
- -- SEE ALSO :
- --= FILE LISTING ===============================================--
- -- FILE SPECS : PD:<ADA.COMPONENTS>PERMUTATE.*
- -- DIRECTORY DISPLAY :
- -- Directory PD:<ADA.COMPONENTS>
- -- File Name Byte Count Line Count
- -- --------------- ---------- ----------
- -- PERMUTATE.ADA 11226 306
- -- PERMUTATE.PRO 3326 69
- -- =============== ========== ==========
- -- 2 Files 14552 375
- --= ABSTRACT ===============================================--
- -- This is a generic package which, given an array of items,
- -- forms all possible permutations using these items. The package does
- -- so by providing a generic permutation class, within which is an
- -- iterator. The iterator has a generic formal subprogram to which it
- -- passes each permutation.
- --
- -- The package may make a nice example of the following Ada
- -- features: nested generics, recursion, generic formal subprograms as a
- -- method of implementing an iterator.
- --= REVISION HISTORY ===============================================--
- --
- -- DATE VERSION AUTHOR HISTORY
- -- none yet...
- --= RELEASE NOTICE ===============================================--
- -- This prologue must be included in all copies of this software.
- --
- -- This software is released to the Ada community.
- -- This software is released to the Public Domain (note:
- -- software released to the Public Domain is not subject
- -- to copyright protection).
- -- Restrictions on use or distribution: NONE
- --= DISCLAIMER ===============================================--
- -- This software and its documentation are provided "AS IS" and
- -- without any expressed or implied warranties whatsoever. No warranties
- -- as to performance, merchantability, or fitness for a particular
- -- purpose exist.
- -- The user is advised to test the software thoroughly before
- -- relying on it. The user must assume the entire risk and liability of
- -- using this software. In no event shall any person or organization of
- -- people be held responsible for any direct, indirect, consequential or
- -- inconsequential damages or lost profits.
- --======================================================================--
-